<script type="text/javascript">
page_search.page_id = <?php echo (int)$this->subject->getIdentity(); ?>;
page_search.tag_url = "<?php echo $this->url(array('page_id' => $this->subject->getIdentity(), 'action' => 'tag'), 'page_search'); ?>";
en4.core.runonce.add(function(){
	page_search.init_tag_cloud();
});
</script>

<div class="page-search-tag-cloud">
<?php foreach ($this->cloud as $item): ?>
	<a class="he_tag<?php echo $item['class']; ?>" href="javascript:void(0)" onclick="page_search.search_by_tag(<?php echo (int)$item['tag_id']; ?>);">
		<?php echo $item['text']; ?>
	</a>
<?php endforeach; ?>
</div>